package com.ftf.tp.blog.infrastructure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ftf.tp.blog.infrastructure.mapper.pos.BrowseArticlePO;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 *
 * @author tanghao
 * @date 2022/6/24
 */
public interface BrowseArticleMapper extends BaseMapper<BrowseArticlePO> {
    int updateBatch(List<BrowseArticlePO> list);

    int batchInsert(@Param("list") List<BrowseArticlePO> list);

    /**
     * 找出重复的浏览记录，最新的除外
     *
     * @return 浏览记录id
     */
    List<Long> selectBrowseRepeat();
}